using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace System.IPod
{
	public class DataObject : Node
	{
		internal Mhod m_mhod;

		public int Type
		{
			get { return m_mhod.Type; }
		}

		public int TotalLength
		{
			get { return m_mhod.TotalLength; }
		}

		protected override int Size
		{
			get { return m_mhod.HeaderLength; }
		}

		protected override void ReadImpl(BinaryReader reader)
		{
			m_mhod = new Mhod();
			m_mhod.Read(reader);
		}

		protected override void WriteImpl(BinaryWriter writer)
		{
			m_mhod.Write(writer);
		}

		protected override void SetSize(int size)
		{
			m_mhod.TotalLength = size;
		}
	}
}
